﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/css/style.css">
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.min.js"></script>
</head>
<body>
<div class="main">
	<div class="optitle clearfix">
		<div class="title">账单管理&gt;&gt;</div>
	</div>
	<form id="form1" name="form1" method="post" action="${pageContext.request.contextPath}/BillServlet?type=update" >
		<input type="hidden" name="method" value="update">
		<input  type="hidden" name="billId" id="billId" value="${bill.billId}"/>
		<div class="content">
			<table class="box">
			   <tr>
					<td class="field">商品名称：</td>
					<td><input type="text" name="productName" class="text" id="productName"  value="${bill.productName}"/> <font color="red">*</font><font color="red" id="productName_span"></font></td>
				</tr>
				 <tr>
					<td class="field">商品单位：</td>
					<td><input type="text" name="productUnit" class="text" id="productUnit"  value="${bill.productUnit}"/> <font color="red">*</font><font color="red" id="productUnit_span"></font></td>
				</tr>
				<tr>
					<td class="field">商品数量：</td>
					<td><input type="text" name="productCount" class="text" id="productCount" value="${bill.productCount}"/> <font color="red">*</font><font color="red" id="productCount_span"></font></td>
				</tr>
				<tr>
					<td class="field">总额：</td>
					<td><input name="billMoney" id="billMoney" class="text" value="${bill.billMoney}"/><font color="red">*</font><font color="red" id="billMoney_span"></font></td>
				</tr>
			   <tr>
					<td class="field">供应商：</td>
					<td>
						<select name="proId" id="proId">
							<c:forEach var="provider" items="${providers}">
								<option <c:if test="${provider.proId==bill.proId }">selected</c:if> value="${provider.proId }">${provider.proName }</option>
							</c:forEach>
						</select>
						<font color="red">*</font><font color="red" id="proId_span"></font>
					</td>
				</tr>
				 <tr>
					<td class="field">是否付款：</td>
					<td><input type="radio" name="payed"  <c:if test="${bill.payed==1}">checked="checked"</c:if> value="1" />是<input type="radio" name="payed"  <c:if test="${bill.payed==0}">checked="checked"</c:if>  value="0" />否</td>
				</tr>
			</table>
		</div>
		<div class="buttons">
			<input type="submit" name="update" id="update" value="保存" class="input-button" />
			<input type="button" name="button" id="button" onclick="history.back(-1)" value="返回" class="input-button"/> 
		</div>

	</form>
</div>

</body>
</html>
